# name : rpact getPowerSurvival median
# key : rpact.getPowerSurvival.median
# contributor: Shuguang Sun
# --
getPowerSurvival(
  alpha = ${1:0.025}, sided = 1, directionUpper = FALSE,
  median1 = ${2:10}, # Treatment
  median2 = ${3:7},  # Reference
  hazardRatio = NA_real_,
  accrualTime = 0,
  accrualIntensity = ${4:8.3},
  maxNumberOfEvents = ${5:100},
  maxNumberOfSubjects = NA_real_,
  allocationRatioPlanned = ${6:1},
  dropoutRate1 = 0.01,
  dropoutRate2 = 0.05,
  dropoutTime = 12
)
